/*
 * tcp_socket.h
 *
 *  Created on: 2016年4月7日
 *      Author: win7
 */

#ifndef EYAS_SOURCES_IO_SOCKET_TCP_TCP_SOCKET_H_
#define EYAS_SOURCES_IO_SOCKET_TCP_TCP_SOCKET_H_
#include <boost/asio/ip/address.hpp>
#include <boost/asio/ip/tcp.hpp>
#include <boost/asio/io_service.hpp>
namespace eyas {
namespace io {
class tcp_socket {
public:
	tcp_socket(boost::asio::io_service& ioService);
	virtual ~tcp_socket();
private:
	boost::asio::io_service& ioService_;
	boost::asio::ip::tcp::socket socket_;
	boost::asio::ip::tcp::endpoint endpoint_;

public:
	boost::asio::io_service& get_ioservice(){return ioService_;}
	boost::asio::ip::tcp::socket& get_socket(){return socket_;}
	boost::asio::ip::tcp::endpoint& get_endpoint(){return endpoint_;}
};
}
}
#endif /* EYAS_SOURCES_IO_SOCKET_TCP_TCP_SOCKET_H_ */
